package kxfang.com.common.adapter;

import java.util.ArrayList;

import androidx.databinding.BindingAdapter;

import kxfang.com.base.livedatabus.LiveDatabus;

import com.zhpan.bannerview.BannerViewPager;
import com.zhpan.bannerview.constants.PageStyle;

/**
 * 应用模块:
 * <p>
 * 类描述:
 * <p>
 *
 * @author darryrzhoong
 * @since 2020-02-13
 */
public class BannerAdapter {
    @BindingAdapter("initBannerView")
    public static void initBannerView(BannerViewPager bannerViewPager,
                                      ArrayList<String> list) {

        bannerViewPager.setHolderCreator(NetBannerProvider::new)
                .setPageStyle(PageStyle.MULTI_PAGE_OVERLAP)
                .create(list);
    }
}
